package com.sunny.wordstudy;

import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import com.sunny.wordstudy.lib.Stat;

public class StudyStatusView extends Activity
{
  Stat a = Stat.a();
  long b = 0L;
  private View.OnClickListener c = new ai(this);

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903047);
    this.b = this.a.getTotalIntroducedWords();
    TextView localTextView1 = (TextView)findViewById(2131230720);
    StringBuilder localStringBuilder1 = new StringBuilder(String.valueOf(this.a.getStudyBookName()));
    Resources localResources1 = getResources();
    Object[] arrayOfObject1 = new Object[2];
    arrayOfObject1[0] = Long.valueOf(this.b);
    arrayOfObject1[1] = Long.valueOf(this.a.getBookWords());
    String str = localResources1.getString(2131099763, arrayOfObject1);
    long l1 = this.a.getTotalLearnedTime() + this.a.getSessionLearnedTime() / 60L;
    StringBuilder localStringBuilder2 = new StringBuilder(String.valueOf(str));
    Resources localResources2 = getResources();
    Object[] arrayOfObject2 = new Object[2];
    arrayOfObject2[0] = Long.valueOf(l1 / 60L);
    arrayOfObject2[1] = Long.valueOf(l1 % 60L);
    localTextView1.setText(localResources2.getString(2131099762, arrayOfObject2));
    TextView localTextView2 = (TextView)findViewById(2131230748);
    long l2 = this.a.getTotalLearnedTime() + this.a.getSessionLearnedTime() / 60L;
    Object[] arrayOfObject3 = new Object[2];
    arrayOfObject3[0] = Long.valueOf(l2 / 60L);
    arrayOfObject3[1] = Long.valueOf(l2 % 60L);
    localTextView2.setText(String.format("%2d:%2d", arrayOfObject3));
    ((TextView)findViewById(2131230749)).setText(String.valueOf(this.b));
    ((TextView)findViewById(2131230752)).setText(this.a.getSessionTime().substring(0, 9));
    TextView localTextView3 = (TextView)findViewById(2131230754);
    long l3 = this.a.getSessionLearnedTime() / 60L;
    Object[] arrayOfObject4 = new Object[3];
    arrayOfObject4[0] = Long.valueOf(l3 / 60L);
    arrayOfObject4[1] = Long.valueOf(l3 % 60L);
    arrayOfObject4[2] = Long.valueOf(this.a.getSessionLearnedTime() % 60L);
    localTextView3.setText(String.format("%2d:%2d:%2d", arrayOfObject4));
    ((TextView)findViewById(2131230757)).setText(String.valueOf(this.a.getIntroduceNum()));
    ((TextView)findViewById(2131230759)).setText(String.valueOf(this.a.getReviewNum()));
    ((TextView)findViewById(2131230761)).setText(String.valueOf(this.a.getWordNum()));
    ((TextView)findViewById(2131230763)).setText(String.valueOf(this.a.getTestOkNum()));
    ((TextView)findViewById(2131230765)).setText(String.valueOf(this.a.getTestFailNum()));
    ((Button)findViewById(2131230766)).setOnClickListener(this.c);
  }
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     com.sunny.wordstudy.StudyStatusView
 * JD-Core Version:    0.5.3
 */